(enums +event 0
	(enum close max min)
	(enum undo redo rewind cut copy paste)
	(enum button_1 button_2 button_3 button_4))

(ui-window *window* ()
	(ui-title-bar *title* "Template" (0xea19 0xea1b 0xea1a) +event_close)
	(ui-tool-bar *main_toolbar* ()
		(ui-buttons (0xe9fe 0xe99d 0xe9ff 0xea08 0xe9c9 0xe9ca) +event_undo))
	(ui-stack *stack_flow* '("main" "settings" "status" "info") :nil
		(ui-grid *main_widget* (:grid_width 2 :grid_height 2 :color +argb_orange)
			(. (ui-button *b1* (:text "1")) :connect +event_button_1)
			(. (ui-button *b2* (:text "2")) :connect +event_button_2)
			(. (ui-button *b3* (:text "3")) :connect +event_button_3)
			(. (ui-button *b4* (:text "4")) :connect +event_button_4))
		(ui-backdrop *settings_widget* (:min_width 512 :min_height 256
				:color +argb_black :ink_color +argb_red :spacing 16 :style :lines))
		(ui-backdrop *status_widget* (:ink_color +argb_green
				:color +argb_black :spacing 16 :style :axis))
		(ui-backdrop *info_widget* (:ink_color +argb_blue
				:color +argb_black :spacing 16 :style :grid))))

(ui-tool-tips *main_toolbar*
	'("undo" "redo" "rewind" "cut" "copy" "paste"))

(ui-tool-tips *stack_flow*
	'("main_view" "settings_view" "status_view" "info_view"))
